import 'package:flutter/material.dart' hide Action;
import 'package:flutter/rendering.dart';
import 'package:fluwx/fluwx.dart' as fluwx;
import 'package:www.znpigai.teacher/utils/http.dart';

import 'app.dart';
import 'global_store/state.dart';

void main() {
  debugPaintSizeEnabled = false;

  /// 全局初始化
  fluwx.registerWxApi(
      appId:
          GlobalState.isTeacher ? 'wxd7b2eb78f58cf3a5' : 'wxdca1762490fd83d0',
      universalLink: 'https://www.znpigai.com/');

  GlobalState.init().then((_) {
    /// 初始化http
    Http.init();

    runApp(createApp());
  });
}
